package com.young.springdemo.service.adapter;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
public class testCat {


//    @PostConstruct
    public void test() throws Exception {
        Class<?> aClass = Class.forName("com.young.springdemo.service.adapter.CatAndDogAdapter");
        CatController dogController = (CatController) aClass.newInstance();
        dogController.catchM();
    }

}
